import 'package:flutter/material.dart';
import 'package:get/get.dart';
import '../../components/searchbar/index.dart';

class Address extends StatelessWidget {
  const Address({super.key});

  void toSearch() {
    Get.toNamed('/search');
  }

  @override
  Widget build(BuildContext context) {
    return ListView(
      children: <Widget>[
        Container(
          child: Column(children: [
            GestureDetector(
              child: const MySearch(),
              onTap: () {
                toSearch();
              },
            )
          ]),
        )
      ],
    );
  }
}
